﻿@{
    ViewBag.Title = "个人中心";
    Layout = "~/Views/Shared/_UserCenter.cshtml";
}

@model MvcShoppingMall.Model.wst_users

<script src="~/Content/js/select.js"></script>
<div class="mod_main">
    <div class="jib_xinx_kuang">
        <div class="wt">
            <ul>
                <li class="dangq_hongx"><a href="@Url.Action("UserInfo","User")">个人信息</a></li>
                <li><a href="@Url.Action("UserPortrait", "User")">设置头像</a></li>
                <li><a href="@Url.Action("UserInfoMore","User")">更多个人信息</a></li>
            </ul>
        </div>


        @using (Html.BeginForm("UserInfo", "User", FormMethod.Post, new { enctype = "multipart/form-data" }))
        {
            <div class="wd">
                <div class="user_set">
                    @*<div class="item_meic">
                        <span class="label_meic"><em>*</em> 用户名：</span>
                        <div class="fl_e">
                            <div><strong>山的那边是海</strong></div>
                        </div>
                    </div>*@
                    <div class="item_meic">
                        <span class="label_meic"><em>*</em> 用户名：</span>
                        <div class="fl_e">
                            <strong>@Model.loginName</strong>
                            <a href="#" class="ftx05 ml10">修改</a>
                            <span class="ftx03">可用于登录，请牢记哦~</span>
                        </div>
                    </div>
                    <div class="item_meic">
                        <span class="label_meic"><em>*</em> 昵称：</span>
                        <div class="fl_e">
                            @*<input type="text" class="itxt_succ itxt_succ_url" maxlength="20" id="nickName" name="userVo.nickName" value="谱写生命的奇迹">*@
                            @Html.TextBoxFor(a => a.userName, new { @class = "itxt_succ itxt_succ_url", maxlength = "20" })
                        </div>
                    </div>
                    <div class="item_meic">
                        <span class="label_meic">性别：</span>
                        <div class="fl_e">
                            @*<input type="radio" name="sex" class="jdradio" value="1">
                            <label class="mr10">男</label>
                            <input type="radio" name="sex" class="jdradio" value="2">
                            <label class="mr10">女</label>
                            <input type="radio" name="sex" class="jdradio" value="0" required>
                            <label class="mr10">保密</label>*@

                            @Html.RadioButtonFor(a => a.userSex, 1) 男&nbsp;
                            @Html.RadioButtonFor(a => a.userSex, 2) 女&nbsp;
                            @Html.RadioButtonFor(a => a.userSex, 0) 保密&nbsp;
                        </div>
                    </div>
                    <div class="item_meic">
                        <span class="label_meic">生日：</span>
                        <div class="fl_e">
                            @*<div id="date">
                                <select name="year" class="area" id="year">
                                    <option value="">选择年份</option>
                                    <option value="2018">2018年</option>
                                </select>
                                <label class="ml5 mr5">年</label>
                                <select name="month" class="area" id="month">
                                    <option value="">选择月份</option>
                                </select>
                                <label class="ml5 mr5">月</label>
                                <select id="days" class="area">
                                    <option value="">选择日期</option>
                                </select>
                                <label class="ml5 mr5">日</label>
                            </div>*@
                            @Html.EditorFor(a => a.brithday, new { @style = "height:20px;width:150px;" })
                        </div>
                    </div>
                    <div class="item_meic">
                        <span class="label_meic">邮箱：</span>
                        <div class="fl_e">
                            <strong>@Model.userEmail</strong>
                            <a href="#" class="ftx05 ml10">修改</a>
                            <span class="ftx03">已验证</span>
                        </div>
                    </div>
                    <div class="item_meic">
                        <span class="label_meic"><em>*</em> 姓名：</span>
                        <div class="fl_e">
                            @*<input type="text" value="" class="user_address">*@
                            @Html.TextBoxFor(a => a.trueName, new { @class = "user_address" })
                            <p class="youh_tis ftx03">输入真实姓名，不得超过20个英文或10个汉字</p>

                        </div>
                    </div>
                    <div class="item_meic">
                        <span class="label_meic"> </span>
                        <div class="fl_e">
                            <input type="submit" value="保存" class="savebtn">
                        </div>
                    </div>
                </div>
            </div>
        }
    </div>
</div>
<script type="text/javascript">
    $(function () {
        $("#date").selectDate()

        $("#days").focusout(function () {
            var year = $("#year option:selected").html()
            var month = $("#month option:selected").html()
            var day = $("#days option:selected").html()
            console.log(year + month + day)
        })

    })

</script>
